@echo off
REM UNCOMMENT THESE LINES TO BUILD FROM LATEST COMMIT
REM git reset --hard origin/main
REM git pull
cd ..
REM 使用 FVM 执行 Flutter 命令
call flutter pub get
call flutter build windows

REM 使用 tar 压缩为 zip 文件（完全不依赖 PowerShell）
tar -a -c -f SilkDecoder-XXX-windows-x86-64.zip -C build/windows/x64/runner/Release .
echo Generated Windows zip!